<!DOCTYPE html>
<html>
<head>
	<title>文章</title>
	<meta name="keywords" content=""/>
	<meta name="description" content="">
	<include file="public@head"/>
</head>

<body class="body-white" id="top">
<include file="public@nav" />

<div class="container tc-main">
	<div class="row">
		<div class="col-md-3">
			<include file="public@usernav" />
		</div>
		<div class="col-md-9">
			<div class="tabs">
				<ul class="nav nav-tabs">
					<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i> 我的文章</a></li>
					<li><a href="{:url('portal/article/add')}"><i class="fa fa-plus"></i> 发表文章</a></li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane active" id="one">
						<br>
						<table class="table table-bordered table-striped table-hover">
							<thead>
							<tr>
								<th>id</th>
								<th>标题</th>
								<th width="150">缩略图</th>
								<th width="150">发表时间</th>
								<th width="150">最后更新时间</th>
								<th width="150">操作</th>
							</tr>
							</thead>
							<php>
								$where=[
								'post.create_time'=>['egt',0],
								'post.user_id'=>$user_id
								];
							</php>
							<tbody>
							<portal:articles item="vo" field="*" where="$where" order="post.create_time DESC" page="10">
								<tr>
									<td>{$vo.id}</td>
									<td>{$vo.post_title}</td>
									<td><img src="{:cmf_get_image_url($vo.more.thumbnail)}" width="40"></td>
									<td>{$vo.published_time}</td>
									<td>{$vo.update_time}</td>
									<td>
										<a href="{:url('portal/article/index',array('id'=>$vo['id']))}">查看原文</a>
								</tr>
							</portal:articles>
							</tbody>
						</table>
					</div>

					<div class="pagination"></div>
				</div>
			</div>
		</div>
	</div>
	<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>